package com.example.service.impl;

import com.example.mapper.Sys_CityMapper;
import com.example.po.Sys_City;
import com.example.service.Sys_CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auter czcjq
 * @date 2022/5/16 21:14
 */
@Service
public class Sys_CityServiceImpl implements Sys_CityService {
    @Autowired
    private Sys_CityMapper sys_cityMapper;

    @Override
    public List<Sys_City> findCities(int pid) {
        List<Sys_City> citys = sys_cityMapper.findCitys(pid);
        return citys;
    }

    @Override
    public Sys_City findCityById(int getid) {
        Sys_City city = sys_cityMapper.findCitybyid(getid);
        return city;

    }
}
